import { createApp } from 'vue'


import NProgress from 'nprogress'   // 导入 nprogress
import '@/components/NProgress/nprogress.less'   // 导入样式，否则看不到效果

import App from './App.vue'
import './index.css'
import Router from './router/index'

import ElementPlus from 'element-plus'

//404页面样式
import 'element-plus/dist/index.css'

createApp(App).use(Router).use(ElementPlus).mount('#app')



NProgress.configure({ showSpinner: false })   // 显示右上角螺旋加载提示

router.beforeEach((to, from, next) => { 
    NProgress.start()   // 开启进度条
    // some code ...
    NProgress.done()   // 关闭进度条
})
